package cn.hhchat.wp.repository;

import cn.hhchat.wp.entity.ConfigEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created this one by HMH on 2017/10/27.
 */
public interface ConfigRepository extends JpaRepository<ConfigEntity, Long> {

    ConfigEntity findByName(String name);

    List<ConfigEntity> findAllByIsActive(Boolean isActive);

}
